<?php
/**
 * User: lie
 * Date: 2020-11-07 19:06
 * description:
 */
    $mysqli = new mysqli("localhost", "root", "123456", "php1200");
    $sql = "SELECT * FROM customer";
    $result = $mysqli->query($sql);
    echo "<table border='1'>";
        echo "<tr>";
            echo "<td>客户编码</td>";
            echo "<td>客户名称</td>";
            echo "<td>客户简称</td>";
        echo "</tr>";
    while ($obj = $result->fetch_object()){
        echo "<tr>";
            echo "<td>$obj->cCusCode</td>";
            echo "<td>$obj->cCusName</td>";
            echo "<td>$obj->cCusAddName</td>";
        echo "</tr>";
}
echo "</table>";